<?php
class Options{
    
    public static $host;
    protected static $dbname;
    private static $user;
    private static $pas;
 
    /**
     * @return the $db
     */
    public static function getDb()
    {
        return self::$dbname;
    }

    /**
     * @return the $host
     */
    public  static function getHost()
    {
        return self::$host;
    }

    /**
     * @return the $user
     */
    public static function getUser()
    {
        return self::$user;
    }

    /**
     * @param field_type $db
     */
    public static function setDb($db)
    {
        self::$dbname = $db;
    }

    /**
     * @param field_type $host
     */
    public static function setHost($host)
    {
        self::$host = $host;
    }

    /**
     * @param field_type $user
     */
    public static function setUser($user)
    {
        self::$user = $user;
    }

    /**
     * @param field_type $pas
     */
    public static function setPas($pas)
    {
        self::$pas = $pas;
    }

    public  static  function setAll(array $options){
        self::setDb($options['dbname']);
        self::setUser($options['user']);
        self::setHost($options['host']);
   }
    
    
    public  static function getParam($key){
        return self::$key;
    }
}


